<?php $this->load->view('includes/header'); ?>
<?php 

echo '<span class="error">' . validation_errors() .'</span>';
if (isset($message))
	echo '<span class="error">' . $message . '</span>';
$attributes = array('class' => 'form-horizontal' , 'id' => 'profilefrm');

?>
<div class="row-fluid">
	<div class="span8" data-original-title="Registration Form">
	<?php echo form_open_multipart($action, $attributes);?>

	<input type="hidden" id="userid" value="0" />
	<fieldset>
	<legend>Step 1: Your details</legend>

	<table class="formtable">
		<tr>
			<th><label for="firstname">Full Name:</label></th>
			<td>
				<input type="text" name="name" id="name" value="<?php echo set_value('name'); ?>" placeholder="Full Name"/>
			</td>
			<td class="info">
			<span class="error">*</span>
			</td>
		</tr>
		<tr>
			<th><label for="user-contactno">Contact No:</label></th>
			<td>
				<input type="text" name="contactno" id="user-contactno" value="<?php echo set_value('contactno'); ?>" />
			</td>
			<td class="info">
			<span class="error">*</span>
			Enter your phone number with country code. ex:951239001
				</td>
		</tr>
		<tr>
			<th><label for="user-address">Address:</label></th>
			<td><textarea class="xxlarge" name="address" id="address"
					rows="2"><?php echo set_value('address'); ?></textarea>
			</td>
			<td class="info"><span class="error">*</span></td>
		</tr>
		<tr>
			<th><label for="user-country">Country:</label></th>
			<td>
				<select name="country" id="countries_states1" class="input-large bfh-countries" data-country="MM">"<?php echo set_value('country'); ?>"</select>
			</td>
			<td class="info"></td>
		</tr>
		<tr>
			<th><label for="user-city">City:</label></th>
			<td>
			<select name="city" class="input-large bfh-states" data-country="countries_states1">"<?php echo set_value('city'); ?>"</select>
			</td>
			<td class="info"></td>
		</tr>
		<tr class="last">
			<th><label for="profile-upload">File Upload:</label></th>
			<td><input type="file" name="userfile" id="userfile"></td>
			<td class="info"></td>
		</tr>
	</table>

	</fieldset>
	<fieldset class="last">
	<legend>Step 2: Pick a display name and a password for your account</legend>
	<table class="formtable">
		<tr>
			<th><label for="displayname">Display Name:</label></th>
			<td>
				<div class="input-prepend">
					<span class="add-on"><i class="icon-user"></i></span>
					<input type="text" name="displayname" id="displayname"
					maxlength="30" value="<?php echo set_value('displayname'); ?>" />
				</div>
			</td>
			<td class="info"><span class="error">*</span>This display name will be used as member name.</td>
		</tr>
		<tr>
			<th><label for="email">Email:</label></th>
			<td>
				<div class="input-prepend">
					<span class="add-on"><i class="icon-envelope"></i></span>
					<input type="text" name="email" id="email" maxlength="50"
					value"<?php echo set_value('email'); ?>" />
				</div>
			</td>
			<td class="info"><span class="error">*</span>This email will be used in your login username.</td>
		</tr>
		<tr>
			<th><label for="user-password">Password:</label></th>
			<td>
				<div class="input-prepend">
					<span class="add-on"><i class="icon-lock"></i></span>
					<input type="password" name="password" id="user-password"
					value="" />
				</div>
			</td>
			<td class="info"><span class="error">*</span>Your password must be at least 8 characters long.
				special characters are not allowed.</td>
		</tr>
		<tr>
			<th><label for="repeatpass"><span>Confirm</span> password:</label></th>
			<td>
				<div class="input-prepend">
					<span class="add-on"><i class="icon-lock"></i></span>
					<input type="password" name="passconf" id="repeatpass" value="" />
				</div>
			</td>
			<td class="info">Just to make sure you entered it correctly.</td>
		</tr>
		<tr class="last">
			<th><label for="agree">Terms</label></th>		
			<td>
				<input type="checkbox" checked id="agree" name="terms" class="checkbox" value="agree" <?php echo set_checkbox("terms","agree"); ?>/> 
				Terms and Conditions<span id="terms_error"> </span>
			</td>
				<td class="info"></td>
			</tr>
	</table>
	<div class="actions">
		<input type="submit" class="btn btn-primary" value="Save changes">&nbsp;
		<button type="reset" class="btn">Cancel</button>
	</div>
	</div>	
	<div class="span4" data-original-title="Advertising Area">4</div>
	
</div>


<?php $this->load->view('includes/footer'); ?>
